package com.chinacoal.hr.levelapi.api.fallback;

import com.baomidou.mybatisplus.plugins.Page;
import com.chinacoal.hr.levelapi.api.WorkflowClient;
import com.chinacoal.hr.levelapi.entity.*;
import com.chinacoal.hr.levelapi.util.CodeMsg;
import com.chinacoal.hr.levelapi.util.Result;
import org.springframework.stereotype.Component;

import javax.validation.Valid;
import java.util.List;

/**
 * @author: YunTao.Li
 * @create: 2019-12-12 17:17
 * @description:
 **/
@Component
public class WorkflowClientFallback implements WorkflowClient {
    public Result<InstanceEntity> processSubmit(@Valid SubmitParam submitParam)
    {
        return Result.error(CodeMsg.FALLBACK);
    }

    public Result<InstanceEntity> completeTask(@Valid ApproveParam approveModal)
    {
        return Result.error(CodeMsg.FALLBACK);
    }

    public Result<Object> deleteInstanceById(List<Long> instanceIds)
    {
        return Result.error(CodeMsg.FALLBACK);
    }

    public Result<Page<WorkItemEntity>> getTaskList(Integer page, Integer pageSize, @Valid QueryTaskListParam queryParam)
    {
        return Result.error(CodeMsg.FALLBACK);
    }

    public Result<Page<WorkItemEntity>> getAchTaskList(Integer page, Integer pageSize, @Valid QueryTaskListParam queryParam)
    {
        return Result.error(CodeMsg.FALLBACK);
    }

    public Result<Page<ApprovalHistoryEntity>> getApprovalHistory(Integer page, Integer pageSize, Long instanceId)
    {
        return Result.error(CodeMsg.FALLBACK);
    }
}
